package com.hghivln.erpwarehouse.system.service;

import com.hghivln.erpwarehouse.system.common.lang.DataGridlView;
import com.hghivln.erpwarehouse.system.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hghivln.erpwarehouse.system.vo.RoleVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hghivln
 * @since 2021-07-01
 */
public interface RoleService extends IService<Role> {

    DataGridlView queryAllRole(RoleVo roleVo);

    Role addRole(Role role);

    Role updateRole(Role role);

    List<Integer> queryMenuIdsByRid(Integer rid);

    void saveRoleMenu(Integer rid, Integer[] mids);

    DataGridlView queryAllRoleNoPage();

    List<String> queryRoleNamesByUserId(Integer id);
}
